/**
 * [135] 分发糖果
 *
 * @format
 * @lc app=leetcode.cn id=135 lang=javascript
 */

// @lc code=start
/**
 * @param {number[]} ratings
 * @return {number}
 */
var candy = function (ratings) {
    const N = ratings.length
    ;[ratings[-1], ratings[N]] = [0, 0]
    function slope(left, mid, right) {
        // \/ \- \\
        // -/ -- -\
        // // /- 
        const N = 2 * (left < mid) + (mid < right)
        switch (N) {
            case 0: // V -·\
            case 1: // 
            case 2: // A
                break
            case 3:
                break
        }
    }
    let [count, lenTop, lenBottom] = [0, 0, 0]
    for (let i = 0; i < N; i++) {}
    return count
}
// @lc code=end
